This happens with my laptop (not a mac) when I type sometimes. When i type, my thumb hovers over the mouse pad and sometimes touches without me knowing. Maybe you're swiping your thumb over it without knowing? It took me a while to figure out why it was happening. You can try turning off the mouse pad (what ever its called on a laptop) when your typing a lot?
It usually happens wherever you last had your cursor right?